/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bullionxpress.shared.application;

import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;

/**
 *
 * @author Beecroft
 */
public class Messages {

    public static String getProperty(String key)
    {
        try {
            Properties props = new Properties();
            props.load(new FileInputStream(new File("./messages.properties")));
            return props.getProperty(key);
        } catch(Exception ex) {
            ex.printStackTrace();
            return "<NA>:" + key;
        }
    }
}
